/***************************************************************************
 *   Copyright (C) 2008 by JBox systems
 *   gabi@shaargiora.co.il
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 ***************************************************************************/

#pragma once

#include <string>
#include <vector>

#include "tweakaction.h"

/**
	A tweak.

	A tweak is an action which modified one or more settings (using a script, registry file, executable).
	Not all tweaks can be removed.

*/
class Tweak {

	private:

		std::string m_description; /// Description
		std::vector<TweakAction> m_actions; /// Tweak actions

	public:

		/**
			Default constructor.

			@param path Path to tweak file.
			@param description Description of tweak's effect.
		*/
		Tweak(const std::string description="");

		std::string description() const { return m_description; }

		void setDescription(std::string description) { m_description = description; }

		void addAction(TweakAction action) { m_actions.push_back(action); }

		std::vector<TweakAction> actions()  const { return m_actions; }
};
